function GetFirewallConfig() {
	

	var myData = [
			['1', 'GigabitEthernet0/0', 'inside', 	'Enables','100',"192.168.1.1","255.255.255.0","","Hardware","1500","","","private internal interface"],
			['2', 'GigabitEthernet0/1', 'outside', 	'Enables','0',	"198.52.1.1",	"255.255.255.0","","Hardware","1500","","",""],
			['3', 'GigabitEthernet0/2', 'dmz', 			'Enables','50',	"10.10.10.1",	"255.255.255.0","","Hardware","1500","","","dmz interface"],
			['4', 'GigabitEthernet0/3', 'partent', 	'Enables','25',	"10.1.1.1",		"255.255.0.0",	"","Hardware","1500","","","interface to connect to partenr network"],
			['5', 'Management0/0', 			'mgmt', 		'Enables','90',	"172.23.1.1",	"255.255.255.0","","Hardware/Management Only","1500","","",""]
	];


	var store = new Ext.data.ArrayStore({
				fields : [{
							name : 'id'
						}, {
							name : 'Interface'
						}, {
							name : 'Name'
						}, {
							name : 'State'
						}, {
							name : 'SecurityLevel'
						}, {
							name : 'IPAddress'
						}, {
							name : 'SubnetMaskPrefixLength'
						}, {
							name : 'Group'
						}, {
							name : 'Type'
						}, {
							name : 'MTU'
						}, {
							name : 'ActiveMACAddress'
						}, {
							name : 'StandbyMACAddress'
						}, {
							name : 'Description'
						}]
			});

	store.loadData(myData);
	var sm = new Ext.grid.CheckboxSelectionModel();
	var northgrid = new Ext.grid.GridPanel({
				store : store,
				title:'当前配置',
				columns : [sm, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '各网口名称',
							width : 100,
							sortable : true,
							dataIndex : 'Interface'
						}, {
							header : '别名',
							width : 100,
							sortable : true,
							dataIndex : 'Name'
						}, {
							header : '启用状态',
							width : 100,
							sortable : true,
							dataIndex : 'State'
						}, {
							header : '安全级别',
							width : 100,
							sortable : true,
							dataIndex : 'SecurityLevel'
						}, {
							header : 'IP',
							width : 100,
							sortable : true,
							dataIndex : 'IPAddress'
						}, {
							header : '掩码',
							width : 150,
							sortable : true,
							dataIndex : 'SubnetMaskPrefixLength'
						}, {
							header : '组',
							width : 100,
							sortable : true,
							dataIndex : 'Group'
						}, {
							header : '接口类型',
							width : 100,
							sortable : true,
							dataIndex : 'Type'
						}, {
							header : 'MTU',
							width : 100,
							sortable : true,
							dataIndex : 'MTU'
						}, {
							header : '工作MAC',
							width : 150,
							sortable : true,
							dataIndex : 'ActiveMACAddress'
						}, {
							header : '备用MAC',
							width : 150,
							sortable : true,
							dataIndex : 'StandbyMACAddress'
						}, {
							header : '描述',
							width : 100,
							sortable : true,
							dataIndex : 'Description'
						}],
				sm : sm,
				tbar : [
							'名称 : test','-','工作域 : domain', '-', {
							text : '备份',
							tooltip : '备份',
							iconCls : 'info',
							handler : function() {							
								
							}
						},'-',{
							text : '备份清理',
							tooltip : '备份清理',
							iconCls : 'delete',
							handler : function() {	
								ClearBackuo();					
							}
						}, '-', {
							text : '刷新',
							tooltip : '刷新',
							iconCls : 'refresh',
							handler : function() {
								store.loadData(myData);
							}
						}],
				stripeRows : true,
				autoExpandColumn : 'id',
				stateful : true,
				height : 300,
				region : 'north',
				split : true,
				stateId : 'fwcfgnorthgrid'
			});
			

	var myData1 = [
			['1', '2012-08-08 12:12:12','备份1','domain','admin','2012-08-08 12:12:12','恢复'],
			['2', '2012-08-09 12:12:12','备份2','domain','admin','2012-08-09 12:12:12','恢复'],
			['3', '2012-08-10 12:12:12','备份3','domain','admin','2012-08-10 12:12:12','恢复'],
			['4', '2012-08-11 12:12:12','备份4','domain','admin','2012-08-11 12:12:12','恢复'],
			['5', '2012-08-12 12:12:12','备份5','domain','admin','2012-08-12 12:12:12','恢复']
	];


	var store1 = new Ext.data.ArrayStore({
				fields : [{
							name : 'id'
						}, {
							name : 'time'
						}, {
							name : 'Name'
						}, {
							name : 'domain'
						}, {
							name : 'backupuser'
						}, {
							name : 'backuptime'
						}, {
							name : 'resume'
						}]
			});

	store1.loadData(myData1);
	var sm1 = new Ext.grid.CheckboxSelectionModel();
	var centergrid = new Ext.grid.GridPanel({
				store : store1,
				title:'历史配置',
				columns : [sm1, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '时间',
							width : 150,
							sortable : true,
							dataIndex : 'time'
						}, {
							header : '名称',
							width : 100,
							sortable : true,
							dataIndex : 'Name'
						}, {
							header : '工作域',
							width : 100,
							sortable : true,
							dataIndex : 'domain'
						}, {
							header : '备份人',
							width : 100,
							sortable : true,
							dataIndex : 'backupuser'
						}, {
							header : '备份时间',
							width : 150,
							sortable : true,
							dataIndex : 'backuptime'
						}, {
							header : '操作',
							width : 50,
							sortable : true,
							dataIndex : 'resume',
							renderer: renderTopic
						}],
				sm : sm1,
				tbar : [{
							text : '查看',
							tooltip : '查看',
							iconCls : 'add',
							handler : function() {
							}
						}, '-', {
							text : '删除',
							tooltip : '删除',
							iconCls : 'delete',
							ref : '../removeBtn',
							disabled : true,
							handler : function() {
								var s = grid.getSelectionModel().getSelections();
								for (var i = 0; r = s[i]; i++) {
									store.remove(r);
								}
							}
						}, '-', {
							text : '查找',
							tooltip : '查找',
							iconCls : 'search',
							handler : function() {							
							}
						}, '-', {
							text : '刷新',
							tooltip : '刷新',
							iconCls : 'refresh',
							handler : function() {							
								store.loadData(myData);
							}
						}, '-', {
							text : '导入',
							tooltip : '导入',
							iconCls : 'in',
							handler : function() {							
							}
						}, '-', {
							text : '导出',
							tooltip : '导出',
							iconCls : 'out',
							handler : function() {							
							}
						}],
				
				stripeRows : true,
				autoExpandColumn : 'id',
				stateful : true,
				region : 'center',
				stateId : 'fwcfgcentergrid'
			});	
		function renderTopic(value, p, record){
				
        return String.format("<a href='javascript:void(null)' onclick='javascript:Ext.MessageBox.alert(\"操作\", \"{0}\");'>{1}</a>",value,value);
    }
			
	var config = new Ext.Panel({
				frame : true,
				layout : 'border',
				items : [northgrid,centergrid]
			})
	
	return config;
}
function ClearBackuo(){

	var states3=[
		['Sunday'],
		['Monday'],
		['Tuesday'],
		['Wednesday'],
		['Thursday'],
		['Friday'],
		['Saturday']
	];
	var states4=[
		['00'],
		['01'],
		['02'],
		['03'],
		['04'],
		['05'],
		['06'],
		['07'],
		['08'],
		['09'],
		['10'],
		['11'],
		['12'],
		['13'],
		['14'],
		['15'],
		['16'],
		['17'],
		['18'],
		['19'],
		['20'],
		['21'],
		['22'],
		['23']
		];
	var states5=[
		['00'],
		['01'],
		['02'],
		['03'],
		['04'],
		['05'],
		['06'],
		['07'],
		['08'],
		['09'],
		['10'],
		['11'],
		['12'],
		['13'],
		['14'],
		['15'],
		['16'],
		['17'],
		['18'],
		['19'],
		['20'],
		['21'],
		['22'],
		['23'],
		['24'],
		['25'],
		['26'],
		['27'],
		['28'],
		['29'],
		['30'],
		['31'],
		['32'],
		['33'],
		['34'],
		['35'],
		['36'],
		['37'],
		['38'],
		['39'],
		['40'],
		['41'],
		['42'],
		['43'],
		['44'],
		['45'],
		['46'],
		['47'],
		['48'],
		['49'],
		['50'],
		['51'],
		['52'],
		['53'],
		['54'],
		['55'],
		['56'],
		['57'],
		['58'],
		['59']
		];
	var WeekTime_center = {
		xtype: 'fieldset',
		margins:'5 5 5 5',
		layout : 'form',
		region:'center',
		bodyStyle : 'padding:10px;',
		items: [
		{
		            xtype:'fieldset',
		            checkboxToggle:true,
		            title: '手工清理',
		            id:'type1',
		            autoHeight:true,
		            collapsed: false,
		            labelWidth : 80,
		            items :[
		            	
		            	new Ext.form.CompositeField({ 
											fieldLabel: '时间', 
											items: [ 
													{
									            xtype: 'datefield',
															width : 202
									        },{
														xtype: 'label',
														style:'padding-top: 4px; ', 
														text:'--'
													},{
									            xtype: 'datefield',
															width : 202
									        }
											] 
									}),{
										xtype: 'textfield',
										name: 'name',
										id  : 'name',
										fieldLabel: '名称',
										anchor: '100%'
									},{
										xtype: 'textfield',
										name: 'backup',
										id  : 'backup',
										fieldLabel: '备份人',
										anchor: '100%'
									}
		            ],
		            listeners:{'collapse':function(obj){
                        Ext.getCmp('type2').expand();     
                        },
                        'expand':function(obj){
                        Ext.getCmp('type2').collapse(true); 
                        }
                    }
		        },{
		            xtype:'fieldset',
		            checkboxToggle:true,
		            title: '自动清理',
		            id:'type2',
		            autoHeight:true,
		            collapsed: true,
		            labelWidth : 80,
		            items :[
		            	
		            	new Ext.form.CompositeField({ 
											fieldLabel: '自动清理', 
											items: [ 
													{
														xtype: 'textfield',
														name: 'days',
														id  : 'days'
													},{
														xtype: 'label',
														style:'padding-top: 4px; ', 
														text:'天以前的配置'
													}
											     
											] 
									}),new Ext.form.CompositeField({ 
											fieldLabel: '最少保留', 
											items: [ 
													{
														xtype: 'textfield',
														name: 'count',
														id  : 'count'
													},{
														xtype: 'label',
														style:'padding-top: 4px; ', 
														text:'个备份'
													}
											     
											] 
									})
									
		            ],
		            listeners:{'collapse':function(obj){
                        Ext.getCmp('type1').expand();     
                        },
                        'expand':function(obj){
                        Ext.getCmp('type1').collapse(true); 
                        }
                    }
		        }
	
		]
	};

	var WeekTimeWindows = new Ext.Window({
				layout : 'border',
				width : 600,
				height : 300,
				title : "备份清理",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'delete',
				items : [WeekTime_center],
				plain : true
				
			});
	WeekTimeWindows.addButton({
				text : "确定",
				handler : function() {
					var data = "{week:'" + Ext.getCmp("week").getValue() + "',start_time:'" + Ext.get("start_time").getValue() + "',end_time:'" + Ext.get("end_time").getValue() + "'}";
					weektimeReturn(data);
					WeekTimeWindows.close();
				}
			});
	WeekTimeWindows.addButton({
				text : '取 消',
				handler : function() {
					WeekTimeWindows.close();
				}
			});
	WeekTimeWindows.show();
}	